import sys
from PyQt5.QtGui import *
from PyQt5.QtWidgets import *

class MyWidget(QWidget):

    def __init__(self):
        super().__init__()
        self.setGeometry(20,40,800,600)

        self.setWindowTitle("MyApp")

myapp = QApplication(sys.argv)
mywidget = MyWidget()
mywidget.show()
sys.exit(myapp.exec_())
